<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap{

	protected function _initAutoload()
   {
      $autoloader = new Zend_Application_Module_Autoloader(array(
                   'namespace' => '',
                  'basePath' => APPLICATION_PATH,

      ));

      return $autoloader;

   }
   
    protected function _initFrontController(){
        $front = Zend_Controller_Front::getInstance();       
        $front->addControllerDirectory(APPLICATION_PATH . "/controllers");
        
        $config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/routers.ini', 'thietlap');
        $router = new Zend_Controller_Router_Rewrite();
        
        $router = $router->addConfig($config, 'routes');
        
        $front->setRouter($router);
                      
        return $front;
    }
}